﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="材料到货发票登记.aspx.cs" Inherits="syc.Sale.材料到货发票登记" %>

<html>
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 154px;
            height: 41px;
        }
        .style2
        {
            width: 68px;
            height: 41px;
        }
        .textbox
        {
            height: 22px;
        }        
        .style6
        {
            height: 48px;
        }
        .style7
        {
            width: 154px;
            height: 48px;
        }
        .style8
        {
            width: 68px;
            height: 48px;
        }
        .style9
        {
            height: 43px;
        }
        .style10
        {
            width: 154px;
            height: 43px;
        }
        .style11
        {
            width: 68px;
            height: 43px;
        }
        .style12
        {
            height: 41px;
        }
        .style13
        {
            height: 35px;
        }
        .style14
        {
            height: 46px;
        }
        .style15
        {
            width: 154px;
            height: 46px;
        }
        .style16
        {
            width: 68px;
            height: 46px;
        }
        .style17
        {
            height: 47px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <script type="text/javascript" language="javascript" src="/common.js"></script>
    <div>
      <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>"
        SelectCommand="SELECT [ID], [名称] FROM [材料供货单位] where 是否是辅料=1">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>"
        SelectCommand="SELECT [ID], 品名+'('+单位+')' as 品名 FROM [材料]">
    </asp:SqlDataSource>
    <div id="wintop" class="wintop" style="display:none;">到货发票录入</div>
    <asp:Panel ID="Panel1" runat="server" CssClass="panel">
<asp:Button ID="Button_Save" runat="server" Text="保 存" UseSubmitBehavior="false" 
        CssClass="button" onclick="Button_Save_Click"  />

<asp:Button ID="Button_ReNew" runat="server" Text="录入新记录" UseSubmitBehavior="false" Visible="false"
        CssClass="button2"  />
        
<asp:Button ID="Button_Close" runat="server" Text="关 闭" UseSubmitBehavior="false"  Visible="true"
        CssClass="button" OnClientClick="parent.swin2_close();return false;" />

</asp:Panel>
<asp:Panel ID="Panel_Msg" runat="server" CssClass="panel2">
    <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" CssClass="panel" HorizontalAlign="Center" 
            Height="378px">

<table border=1 
        
        style="border-collapse:separate;font-size:14px;margin-top:7px;margin-bottom:24px; width: 523px; height: 277px;">
<tr>
<td colspan=4 align=center 
        style="font-weight:bold; letter-spacing:10px;font-size:16px;border:none;" 
        class="style17">
    材料发票信息</td>
</tr>

<tr>
<td align=right class="style6">年度:</td>
<td class="style7" ><asp:DropDownList
            ID="NianDu" runat="server" Width="120" Style="margin-left: 1px" 
        AutoPostBack="true" onselectedindexchanged="NianDu_SelectedIndexChanged"
            >          
            <asp:ListItem Value="2010">2010</asp:ListItem>
            <asp:ListItem Value="2011">2011</asp:ListItem>
            <asp:ListItem Value="2012">2012</asp:ListItem>
            <asp:ListItem Value="2013">2013</asp:ListItem>
            <asp:ListItem Value="2014">2014</asp:ListItem>
            <asp:ListItem Value="2015">2015</asp:ListItem>
            <asp:ListItem Value="2016">2016</asp:ListItem>
            <asp:ListItem Value="2017">2017</asp:ListItem>
            <asp:ListItem Value="2018">2018</asp:ListItem>
            <asp:ListItem Value="2019">2019</asp:ListItem>
            <asp:ListItem Value="2020">2020</asp:ListItem>
        </asp:DropDownList></td>
<td align=right class="style8">季度:</td>
<td class="style6"><asp:DropDownList AutoPostBack="true"
            ID="JiDu" runat="server" Width="80" 
        onselectedindexchanged="JiDu_SelectedIndexChanged" >           
            <asp:ListItem Value="1">1 季度</asp:ListItem>
            <asp:ListItem Value="2">2 季度</asp:ListItem>
            <asp:ListItem Value="3">3 季度</asp:ListItem>
            <asp:ListItem Value="4">4 季度</asp:ListItem>
        </asp:DropDownList></td>
</tr>
<tr>
<td align=right class="style14">开票日期:</td>
<td class="style15"><asp:TextBox ID="Date1" runat="server" CssClass="textbox" Width="120"></asp:TextBox><img alt="" src="/Icons/29.png" align="absmiddle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" /></td>
<td align=right class="style16">挂帐日期:</td>
<td class="style15"><asp:TextBox ID="Date2" runat="server" CssClass="textbox" Width="120"></asp:TextBox><img alt="" src="/Icons/29.png" align="absmiddle" onclick="makecalendar(document.getElementById('Date2').value, document.getElementById('Date2'));" /></td>
</tr>
<tr>
<td  align=right class="style9">供货单位:</td>
<td class="style10"><asp:DropDownList
            ID="GongHuo" runat="server" Width="120" DataSourceID="SqlDataSource2" DataTextField="名称"  AutoPostBack="true" 
            DataValueField="ID" 
        onselectedindexchanged="GongHuo_SelectedIndexChanged">
        </asp:DropDownList></td>
<td align=right class="style11">材料类别:</td>
<td width=180 class="style9"><asp:DropDownList
            ID="LeiBie" runat="server" Width="140px" DataSourceID="SqlDataSource3" DataTextField="品名"  AutoPostBack="true" 
            DataValueField="ID" 
        onselectedindexchanged="LeiBie_SelectedIndexChanged">
        </asp:DropDownList></td>
</tr>

<tr>
<td align=right class="style12">发票量(吨):</td>
<td class="style1"><asp:TextBox ID="ShuLiang" runat="server" CssClass="textbox" Width="120" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
<td align=right class="style2">单价(元):</td>
<td class="style12"><asp:TextBox ID="DanJia" runat="server" CssClass="textbox" Width="120" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
</tr>


<tr>
<td align=right class="style13">备注:</td>
<td colspan="3" class="style13"><asp:TextBox ID="BeiZhu" runat="server" CssClass="textbox" Width="380"></asp:TextBox></td></tr>
</table>

</asp:Panel>


    </div>
    </form>
</body>
</html>
